#!/bin/bash

# 创建目录并复制文件
mkdir code
cp -r ../build ./code
# 进入目录并创建子目录
cd code

# 创建子目录
for arg in "$@"; do
    echo "$arg"
    mkdir -p "$arg" 
done

# 返回上一级目录并复制文件到子目录
cd ..
for arg in "$@"; do
    cp -rf "../$arg"/* ./code/"$arg"
done